package org.devf.fork.imsimulator.help;

import cn.hutool.core.io.FileUtil;

import java.util.Locale;
import java.util.Objects;

/**
 * ImgUtil related
 *
 * @author wanghuafu
 * @since 1.0  2023/9/28 15:22
 */
public class ImgUtil {

    public static boolean isImg(String filename){
        String suffix = FileUtil.getSuffix(filename).toLowerCase(Locale.ROOT);
        return Objects.equals(suffix,"png") ||
                Objects.equals(suffix,"jpg");
    }
}
